<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.svpn.proxy" >
	
	<!--允许联网 --> 
	<uses-permission android:name="android.permission.INTERNET" /> 
	<!--获取GSM（2g）、WCDMA（联通3g）等网络状态的信息  --> 
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
	<!--获取wifi网络状态的信息 --> 
	<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 
	<!--保持CPU 运转，屏幕和键盘灯有可能是关闭的,用于文件上传和下载 -->
	<uses-permission android:name="android.permission.WAKE_LOCK" /> 
	<!--获取sd卡写的权限，用于文件上传和下载-->
	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
	<!--允许读取手机状态 用于创建BmobInstallation--> 
	<uses-permission android:name="android.permission.READ_PHONE_STATE" />

	<!-- 应用请求联网权限 -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
	
	<!-- 读写外部存储器权限 -->
	<uses-permission android:name="android.permission.READ_CONTACTS"/>
	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

	<!-- 状态栏权限 -->
	<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
	
    <application
		android:name=".BaseContext"
		android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
		
		<activity
            android:name=".AppManager"
            android:label="@string/menu_item_info">
        </activity>

		<activity
            android:name=".SettingActivity"
            android:label="@string/app_name">
        </activity>

		<service
            android:name=".core.LocalVpnService"
            android:permission="android.permission.BIND_VPN_SERVICE">
            <intent-filter>
                <action android:name="android.net.VpnService" />
            </intent-filter>
        </service>

        <service
            android:name=".core.OnTileService"
            android:icon="@drawable/ic_service_busy"
            android:label="@string/menu_item_switch"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE"/>
            </intent-filter>
        </service>
		
    </application>

</manifest>
